texture: Add property annotations
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2021 01:06:36 +0000 (20:06 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:32 +0000 (16:37 +0000)
Connect properties, getters, and setters with annotations.

gdk/gdktexture.c

index 6e3bc73380bab742deacc3b191bcc6e3403d803d..07235eb97c5e368f80ce3f686f23d43bfc5ca685 100644 (file)
@@ -194,7 +194,7 @@ gdk_texture_class_init (GdkTextureClass *klass)
   gobject_class->dispose = gdk_texture_dispose;
 
   /**
-   * GdkTexture:width:
+   * GdkTexture:width: (attributes org.gtk.Property.get=gdk_texture_get_width)
    *
    * The width of the texture, in pixels.
    */
@@ -211,7 +211,7 @@ gdk_texture_class_init (GdkTextureClass *klass)
                       G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GdkTexture:height:
+   * GdkTexture:height: (attributes org.gtk.Property.get=gdk_texture_get_height)
    *
    * The height of the texture, in pixels.
    */
@@ -382,7 +382,7 @@ gdk_texture_new_from_file (GFile   *file,
 }
 
 /**
- * gdk_texture_get_width:
+ * gdk_texture_get_width: (attributes org.gtk.Method.get_property=width)
  * @texture: a `GdkTexture`
  *
  * Returns the width of @texture, in pixels.
@@ -398,7 +398,7 @@ gdk_texture_get_width (GdkTexture *texture)
 }
 
 /**
- * gdk_texture_get_height:
+ * gdk_texture_get_height: (attributes org.gtk.Method.get_property=height)
  * @texture: a `GdkTexture`
  *
  * Returns the height of the @texture, in pixels.